<?php
$RowVN			= $interfaces_class->GetByName('information_vn');
$RowEN			= $interfaces_class->GetByName('information_en');
$contentVN		= $func->GetSession('contentVN');
$contentEN		= $func->GetSession('contentEN');
if(is_array($RowVN)){
	$contentVN	= $RowVN[0]['content'];
}
if(is_array($RowEN)){
	$contentEN	= $RowEN[0]['content'];
}
$ErrorQ 		= $func->GetSession('admin_fasle');
$func->DelSession('contentVN');
$func->DelSession('contentEN');
$func->DelSession('admin_fasle');
?>
<div class="dataTables db">
	<div class="dataTables_bar db">
    	<h5 class="title dib"><?php echo $config_nc->Information;?></h5>        
    </div><!--end dataTables_bar-->
    <div class="themuser db">
        <form class="form-centent" action="<?php echo $WEB_DOMAIN;?>/<?php echo $WEB_ADMIN;?>/index.php?u1=_information" method="post">
        	<ul class="nd db">
            	<li>
                    <label class="span2 fl">&nbsp;</label>
                    <span class="errorq"><?php if(isset($ErrorQ)){echo $ErrorQ;}?>&nbsp;</span>
                </li>
            	<li>
                    <label class="span2 fl">
                    	<?php echo $config_nc->Information;?> (Tiếng Việt)
                    </label>
                    <textarea id="contentVN" name="contentVN" >
                    	<?php echo $contentVN;?>
                    </textarea>
                    <script type="text/javascript">
						CKEDITOR.replace('contentVN',{
							filebrowserBrowseUrl : 'public/FCKeditor/ckfinder/ckfinder.html',
							filebrowserImageBrowseUrl : 'public/FCKeditor/ckfinder/ckfinder.html?type=Images',
							filebrowserFlashBrowseUrl : 'public/FCKeditor/ckfinder/ckfinder.html?type=Flash',
							filebrowserUploadUrl : 'public/FCKeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
							filebrowserImageUploadUrl : 'public/FCKeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
							filebrowserFlashUploadUrl : 'public/FCKeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
						});
					</script> 
                </li> 
                <li>
                    <label class="span2 fl">
                    	<?php echo $config_nc->Information;?> (English)
                    </label>
                    <textarea id="contentEN" name="contentEN" >
                    	<?php echo $contentEN;?>
                    </textarea>
                    <script type="text/javascript">
						CKEDITOR.replace('contentEN',{
							filebrowserBrowseUrl : 'public/FCKeditor/ckfinder/ckfinder.html',
							filebrowserImageBrowseUrl : 'public/FCKeditor/ckfinder/ckfinder.html?type=Images',
							filebrowserFlashBrowseUrl : 'public/FCKeditor/ckfinder/ckfinder.html?type=Flash',
							filebrowserUploadUrl : 'public/FCKeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
							filebrowserImageUploadUrl : 'public/FCKeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
							filebrowserFlashUploadUrl : 'public/FCKeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
						});
					</script> 
                </li>                
            </ul>
            <div class="form-actions db">      
            	<button type="submit"><?php echo $config_nc->Accept;?></button>    
            </div><!--end form-actions-->
        </form>
    </div>
</div><!--end dataTables-->